<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ch">
<head>
    <base th:href="${#request.getScheme()}+'://'+${#request.getServerName()}+':'+${#request.getServerPort()}+${#request.getContextPath()}">
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品清单</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/animate.css}"/>
    <script th:src="@{/layui/jquery.min.js}"></script>
    <script th:inline="javascript">
        var basePath = [[${#httpServletRequest.getScheme() + "://" + #httpServletRequest.getServerName() + ":" + #httpServletRequest.getServerPort() + #httpServletRequest.getContextPath()}]];
    </script>
</head>
<body style="margin:10px;background-color: white">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <form class="layui-form" lay-filter="searchForm">
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-size:20px">选择状态</label>
                    <div class="layui-input-inline">
                        <select th:id="state" name="type" lay-filter="types">
                            <option th:title="100" value="">全部商品</option>
                            <option th:title="3" value="0">待审核</option>
                            <option th:title="1" value="1">在售</option>
                            <option th:title="0" value="2">下架</option>
                        </select>
                    </div>
                </div>
            </form>
            <div class="animated fadeIn">
                <table class="layui-hide" id="product" lay-filter="test"></table>
                <script type="text/html" id="barDemo">
                    <a class="layui-btn layui-btn-xs" lay-event="xiangqing">详情</a>
                    {{# if(d.commstatus!=4){ }}
                        {{# if(d.commstatus!=0){ }}
                        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="weigui">下架</a>
                        {{# } }}
                        {{# if(d.commstatus!=1){ }}
                        <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="shenhe">通过审核</a>
                        {{# } }}
                    {{# } }}
                </script>
            </div>
        </div>
    </div>
</div>
</body>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/admin/productlist.js}"></script>
</html>